{include file="header.tpl" }
{literal}
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
{/literal}
<img src='{#t_images#}navi.gif' border=0 alt="">{$nav_link}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
<table width="98%" border=0 cellspacing=0 cellpadding=0 align=center>
<tr>
<td width="170" height="50%" valign="top">{include file="left.tpl"}<!-- left start --></td>
<!-- left end -->
<td valign="top">{if $code eq "01"}{if $none}
  <p>&nbsp;</p>
  <div align="center">你还没有开店，请点【<span class="style1"><a href="index.php?act=Seller&code=08"><font color="#FF0000">这里</font></a></span>】添加你的第一个店铺{else}
    <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
      <tr>
        <td width="50%" valign=top>
          <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
            <tr>
              <td>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                 
                  <tr>
                    <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                      <form action="" method="post">
					  <tr class=left_head>
                        <td width="135" class="topmenu">商铺名称</td>
                        <td width="86" class="topmenu">在卖商品数</td>
                        <td width="174" class="topmenu">经营范围</td>
                        <td width="71" class="topmenu">审批状态</td>
                        <td width="67" class="topmenu">禁止状态</td>
                        <td width="184" colspan="3" align="center" class="topmenu">管理操作</td>
                      </tr>
  {section name=datakey loop=$shop_data}
  <tr class='f_one'> 
      <td><input type="checkbox" name="html_id[]" value="{$shop_data[datakey][5]}">
	  <a href="index.php?act=sd&SHOP_ID={$shop_data[datakey][5]}" target="_blank">{$shop_data[datakey][0]}</a></td>
  <td align="center">{$shop_data[datakey][1]}</td><td align="center">{$shop_data[datakey][2]}</td><td align="center">{$shop_data[datakey][3]}</td>
  <td align="center">{$shop_data[datakey][4]}</td>
      <td colspan="3" align="center"><a href="index.php?act=Promote&code=asp&SHOP_ID={$shop_data[datakey][5]}">我要推广</a> | <a href="index.php?act=Seller&code=02&SHOP_ID={$shop_data[datakey][5]}">装修店面</a><br><a href="index.php?act=Seller&code=11&SHOP_ID={$shop_data[datakey][5]}">新品上架</a> | <a href="index.php?act=Seller&code=10&SHOP_ID={$shop_data[datakey][5]}" onclick="return confirmDel('是否删除商铺,此操作不可恢愎，商铺内的所有商品将全部删除！')">删除商铺</a></td>
      </tr>
  {/section} <tr><td colspan="6"><input type="submit" name="Submit" value="生成静态页面">
      <input name="code" type="hidden" id="code" value="make_html"></td>
  </tr></form>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table>
</div>
  {/if}{elseif $code eq "02"}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                <tr >
                  <td><table width="99%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7><form action="" method="post" enctype="multipart/form-data" name="form3">
                    <tr class='f_one'>
                      <td width="18%"> 店招</td>
                      <td><img src="{$pic_path}" width="150" height="150"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店名
                          <span class="red">*</span></td>
                      <td><input name="msd[shop_name]" type="text" id="msd[shop_name]3" class="form" value="{$ms.shop_name}"></td>
                    </tr>
                    <tr class='f_one'>
                      <td> 电子邮件</td>
                      <td><input name="msd[shop_email_address]" type="text" class="form" id="msd[shop_email_address]3" value="{$ms.shop_email_address}"></td>
                    </tr>
                    <tr class='f_one'>
                      <td> 店铺地址</td>
                      <td><input name="msd[shop_location]" type="text" class="form" id="msd[shop_location]3" value="{$ms.shop_location}"></td>
                    </tr>
                    <tr class='f_one'>
                      <td> 联系电话
                          <span class="red">*</span></td>
                      <td><input name="msd[shop_telephone]" type="text" class="form" id="msd[shop_telephone]3" value="{$ms.shop_telephone}"></td>
                    </tr>
                    <tr class='f_one'>
                      <td> 经营范围</td>
                      <td><input name="msd[shop_catalog]" type="text" class="form" id="msd[shop_catalog]3" value="{$ms.shop_catalog}"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺类型
                          <span class="red">*</span></td>
                      <td><select name="msd[shop_property_id]" class="form">
                          
                          
                {html_options values=$cat_id selected=$shop_property_id output=$cat_name}
            
                      
                      
                        </select></td>
                    </tr>
                    <tr class='f_one'>
                      <td> 店铺描述</td>
                      <td><textarea name="msd[shop_describle]" cols="80" rows="10" class="form" id="textarea9">{$ms.shop_describle}</textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺公告</td>
                      <td><textarea name="msd[shop_notice]" cols="80" rows="5" class="form" id="msd[shop_notice]">{$ms.shop_notice}</textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td>定单填写要求<br>
（仅对钻石商家有效）</td>
                      <td><textarea name="msd[order_notice]" cols="80" rows="10" class="form" id="msd[order_notice]">{$ms.order_notice}
                      </textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td height="23" rowspan="2"><p>上传照片</p></td>
                      <td><input name="new_pic" type="file" class="form" id="new_pic3">
                      </td>
                    </tr>
                    <tr class='f_one'>
                      <td>（必须是jpg或gif格式的1M以下大小的文件，请选用大约150 X 150的图片 ）</td>
                    </tr>
                    <tr  class='f_one'>
                      <td colspan="2" align="center"><input name="submit3" type="submit" id="submit4" value="  修 改  ">
                        <input name="pic_id" type="hidden" id="pic_id" value="{$ms.shop_prime_picture_id}">
                        <input name="SHOP_ID" type="hidden" id="SHOP_ID" value="{$ms.shop_id}">
                        <input name="code" type="hidden" id="code7" value="07"></td>
                      </tr></form>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
  {elseif $code eq "08"}
 {literal}
      <SCRIPT language=Javascript>
       <!--
          
	function isEmail( str ){  

	var myReg = /^[-_A-Za-z0-9]+@([_A-Za-z0-9]+\.)+[A-Za-z0-9]{2,3}$/; 
	
	if(myReg.test(str)) return true; 
	
	return false; 

	}
	  
	  function valid()
	  {
	      var errors='';
	      sn = form4.elements['as[shop_name]'];
	      if(!sn.value) errors ='- 你必须设置一个商铺名称！\n'; 
	     
	      Tele = form4.elements['as[shop_telephone]'];
	      if(isNaN(Tele.value) || !Tele.value)
	      {
		  errors+='- 电话号码必须是数字\n';
	      }
	      

	    Remail = form4.elements['as[shop_email_address]'];
	    if(!(Remail.value) || !isEmail(Remail.value)){
	    errors+='- Email必填且必需为合法Email地址!\n';
	    }
	      
	      if (errors) alert('发生了如下错误:\n'+errors);
              return (errors == '');
	  }
       
       -->
       </script>
      {/literal}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                
                <tr>
                  <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                   <form action="" method="post" enctype="multipart/form-data" name="form4" onSubmit="return valid();"> <tr class='f_one'>
                      <td width="96">店铺名称 <span class="red">*</span></td>
                      <td><input name="as[shop_name]" type="text"  class="form" id="as[shop_name]">                          </td>
                    </tr>
                    <tr class='f_one'>
                      <td>联系电邮 <span class="red">*</span></td>
                      <td><input name="as[shop_email_address]" type="text" class="form" id="as[shop_email_address]"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺地址</td>
                      <td><input name="as[shop_location]" type="text" class="form" id="as[shop_location]"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>联系电话<span class="red"> *</span></td>
                      <td><input name="as[shop_telephone]" type="text" class="form" id="as[shop_telephone]"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>经营范围</td>
                      <td><input name="as[shop_catalog]" type="text" class="form" id="as[shop_catalog]2"></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺类别
                          <span class="red">*</span></td>
                      <td><select name="as[shop_property_id]" class="form">
        {html_options values=$cat_id  output=$cat_name}
                         </select></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺描述</td>
                      <td><textarea name="as[shop_describle]" cols="80" rows="10" class="form" id="textarea3"></textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td>店铺公告</td>
                      <td><textarea name="as[shop_notice]" cols="80" rows="5" class="form" id="as[shop_notice]"></textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td>定单填写要求<br>
（仅对钻石商家有效）</td>
                      <td><textarea name="as[order_notice]" cols="80" rows="10" class="form" id="textarea5"></textarea></td>
                    </tr>
                    <tr class='f_one'>
                      <td rowspan="2"> 上传招牌</td>
                      <td><input name="up_pic" type="file" class="form" id="up_pic">
                      </td>
                    </tr>
                    <tr class='f_one'>
                      <td>（必须是jpg或gif格式的1M以下大小的文件，请选用大约150 X 150的图片）</td>
                    </tr>
                    <tr  class='f_one'>
                      <td colspan="2" align="center"><input name="submit" type="submit" id="button" value="  添 加  ">
                          <input name="code" type="hidden" id="code" value="09">
                          <br><font color="#FF0000">注意</font>：你的第一个商铺开设后请立即在“ 管理我的商铺 ”里添加新商品</td>
                    </tr></form>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
  {elseif $code eq "11"}{literal}
      <SCRIPT language=Javascript>
     <!--
        function valid()
	{           
	         var errors='';
	         gn = goodsadd.elements['ag[goods_name]'];
		 if( !gn.value )  errors = "- 必须提供商品名！\n";
                 
		 p = goodsadd.elements['goods_price'];
		 if( !p.value ) errors += "- 必须提供商品价格！\n";
                 if( isNaN(p.value) ) errors += "- 商品价格必须是数字（单位：元）！\n";
		 
		 d = goodsadd.elements['goods_discount'];
                 if( isNaN(d.value) ) errors += "- 商品折扣必须是数字（单位：%）！\n";


		 if (errors) alert('发生了如下错误:\n'+errors);
		 return(errors=='');
	}
	     
     -->
    </script>
      {/literal}
      <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
        <tr>
          <td width="50%" valign=top>
            <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
              <tr>
                <td>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                    <tr >
                      <td><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7><form action="" method="post" enctype="multipart/form-data" name="goodsadd" onSubmit="return valid();">
                        <tr class='f_one'>
                          <td width="207"> 商品名</td>
                          <td width="333"><input name="ag[goods_name]" type="text" class="form" id="ag[goods_name]">
                              <span class="red">*</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品价格（单位：元）</td>
                          <td><input name="ag[goods_price]" type="text" class="form" id="goods_price" value="0">
                              <span class="red">* 0代表‘面议'</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品折扣（单位：%）</td>
                          <td><input name="ag[goods_discount]" type="text" class="form" id="goods_discount">
      %</td>
                        </tr>
                        <tr class='f_one'>
                          <td> 有效日期（单位：天）</td>
                          <td><input name="ag[goods_valid_period]" type="text" class="form" id="ag[goods_valid_period]2">
      天</td>
                        </tr>
                        <tr class='f_one'>
                          <td> 商品描述</td>
                          <td><textarea name="ag[goods_describle]" cols="80" rows="10" class="form" id="textarea4"></textarea></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商家是否推荐</td>
                          <td><span class="red">
                            <input type="checkbox" name="ag[goods_seller_recommend]">
                              </span></td>
                        </tr>
                        <tr class='f_one'>
                          <td>系统分类</td>
                          <td><select name=ag[goods_cat_id] class="form">
                            
                              
        {html_options values=$cat_id  output=$cat_name}
     
                  
                            
                          </select>
                            <span class="red"> *</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td>自定义分类</td>
                          <td><select name=ag[goods_ccat_id] class="form">
        {html_options values=$cc_id  output=$cc_title}
                            </select>
                          (你需先在“自建分类”里添加你在此商铺里所买商品的分类)</td>
                        </tr>
                        <tr class='f_one'>
                          <td rowspan="2">上传照片</td>
                          <td><input name="up_pic" type="file" class="form" id="up_pic4">
                          </td>
                        </tr>
                        <tr class='f_one'>
                          <td>（必须是jpg或gif格式的1M以下大小的文件，请选用大约150 X 150的图片）</td>
                        </tr>
                        <tr class="f_one">
                          <td colspan="2" align="center"><input name="submit" type="submit" id="submit" value="  提 交  ">
                            <input name="ag[shop_id]" type="hidden" class="form" id="ag[shop_id]" value="{$shop_id}">
                            <input name="code" type="hidden" class="form" id="code4" value="14"></td>
                          </tr></form>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      {elseif $code eq '12'}
      <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
        <tr>
          <td width="50%" valign=top>
            <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
              <tr>
                <td>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                    <tr >
                      <td><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
					  <form action="" method="post" enctype="multipart/form-data" name="form6">
                        <tr class='f_one'>   
                          <td width="128" height="79"> 商品照片</td>
                          <td width="412"><img src="{$pic_path}" width="150" ></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品名</td>
                          <td><input name="mg[goods_name]" type="text" class="form" id="mg[goods_name]2" value="{$g.goods_name}"></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品价格(单位：元)</td>
                          <td><input name="mg[goods_price]" type="text" class="form" id="mg[goods_price]2" value="{$g.goods_price}">
      0代表‘面议' </td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品折扣(单位：%)</td>
                          <td><input name="mg[goods_discount]" type="text" class="form" id="mg[goods_discount]2" value="{$g.goods_discount}"></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品有效期（天）</td>
                          <td><input name="mg[goods_valid_period]" type="text" class="form" id="mg[goods_valid_period]2" value="{$g.goods_valid_period}"></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商品描述</td>
                          <td><textarea name="mg[goods_describle]" cols="80" rows="10" class="form" id="textarea11">{$g.goods_describle}</textarea></td>
                        </tr>
                        <tr class='f_one'>
                          <td>商家是否推荐 </td>
                          <td><input name="mg[goods_seller_recommend]" type="checkbox" id="mg[goods_seller_recommend]" {if $g.goods_seller_recommend eq "on"} checked{/if}></td>
                        </tr>
                        <tr class='f_one'>
                          <td>系统分类</td>
                          <td><select name=mg[goods_cat_id] class="form">
                {html_options values=$cat_id selected=$goods_cat_id output=$cat_name}
                          </select>
                            <span class="red">*</span></td>
                        </tr>
                        <tr class='f_one'>
                          <td>自定义分类</td>
                          <td><select name=mg[goods_ccat_id] class="form">
        {html_options values=$cc_id  selected=$g.goods_ccat_id output=$cc_title}
                          </select>
                            (你需先在“<a href="index.php?act=Diyc&code=24">自建分类</a>”里添加你在此商铺里所买商品的分类)</td>
                        </tr>
                        <tr class='f_one'>
                          <td>更新照片</td>
                          <td><input name="new_pic" type="file" class="form" id="new_pic4">
                            （请选用大约150 X 150的图片）                          </td>
                        </tr>
                        <tr class="f_one">
                          <td colspan="2" align="center"><input name="submit" type="submit" class="form" id="submit" value="  修 改  ">
                            <input name="pic_id" type="hidden" id="pic_id" value="{$g.goods_prime_picture_id}">
                            <input name="SHOP_ID" type="hidden" id="SHOP_ID" value="{$g.shop_id}">
                            <input name="GOODS_ID" type="hidden" id="GOODS_ID" value="{$g.goods_id}">
                            <input name="code" type="hidden" id="code9" value="13"></td>
                          </tr></form>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>      
      {elseif $code eq '16' or $code eq "22" or $code eq "actgoods"}
      <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
        <tr>
          <td width="50%" valign=top>
            <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
              <tr>
                <td>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
                    <tr class="head">
                      <td align="center"><a href="index.php?act=Seller&code=16">正在交易商品</a></td>
                      <td align="center"><a href="index.php?act=Seller&code=22">停止交易商品</a></td>
                      <td align="center"><a href="index.php?act=Seller&code=actgoods">等待激活商品</a></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table> <br>     
      <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
                <tr >
                  <td ><table width="100%"  border="0">
                    <tr>
                      <td width="35"><img src="{#t_images#}icon02_1112.gif" width="32" height="32"></td>
                      <td width="60"><strong>小提示：</strong></td>
                      <td>1.点击“<font color="#FF9966">留言</font>”管理客户对该商品的留言，您给他们的及时回复有利于提高你的商品销售。</td>
                    </tr>
                    <tr>
                      <td height="15" colspan="2">&nbsp;</td>
                      <td>2.点击“<font color="#FF9966">修改</font>”可以更改您的商品价格，照片，描述等。</td>
                    </tr>
                    <tr>
                      <td height="41" colspan="2">&nbsp;</td>
                      <td >3.如果点击“<font color="#FF9966">标记已卖</font>”,您可以停止该商品交易，这样客户就不能看见您的商品。停止交易的商品则会出现“<font color="#FF9966">恢复交易</font>”选项，点击后商品回复交易。此功能对你没有库存，脱销非常有用。同时您可以记录您所卖出去的所有商品，以便进行市场分析。</td>
                    </tr>
                    <tr>
                      <td height="41" colspan="2">&nbsp;</td>
                      <td >4.如果您的商品超过有效期（有效期长短由商家等级决定），系统会自动将商品放入“<font color="#FF9966">等待激活商品</font>”队列（即，不在前台显示，不能被用户查看到）,激活后的商品将作为新品上架商品显示在前面！同时建议商家在激活前核对商品分类和说明信息，以便客户更好了解您的商品。</td>
                    </tr>
                    <tr>
                      <td height="18" colspan="2">&nbsp;</td>
                      <td >5.“<font color="#FF9966">首页推广</font>”：付费功能，可以把某个商品置顶到便利店首页，起到广告和宣传作用！</td>
                    </tr>
                    <tr>
                      <td  colspan="3" class="red">{$msg}</td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="113" valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <tr  class=left_head>
                      <td width="15%" class="topmenu">商品名（ID）</td>
                      <td width="20%" class="topmenu">上架时间</td>
                      <td width="17%" class="topmenu">失效日期</td>
                      <td width="13%" class="topmenu">价格(折扣%)</td>
                      <td width="10%" class="topmenu">人气</td>
                      <td width="25%" align="center" class="topmenu">管理操作</td>
                    </tr>
  {section name=datak loop=$g_data}
  <tr class='f_one'>
    <td><a href="index.php?act=gd&GOODS_ID={$g_data[datak][6]}" target="_blank">{$g_data[datak][0]}</a>({$g_data[datak][6]})</td>
    <td>{$g_data[datak][1]}</td>
    <td>{$g_data[datak][2]}</td>
    <td>{$g_data[datak][3]}</td>
    <td>{$g_data[datak][4]}{if $g_data[datak][7]}
      <br>
      (<font color="#FF0000">{$g_data[datak][7]}条新留言</font>){/if}</td>
    <td colspan="2"><div align="center"><a href="index.php?act=Seller&code=17&GOODS_ID={$g_data[datak][6]}">留言</a>&nbsp;|&nbsp;<a href="index.php?act=Seller&code=12&GOODS_ID={$g_data[datak][6]}">改</a>&nbsp;|&nbsp;<a href="index.php?act=Seller&code=15&GOODS_ID={$g_data[datak][6]}" onclick="return confirmDel('是否删除商品?')">删</a>&nbsp;|&nbsp;<a href="index.php?act=Promote&code=idx&GOODS_ID={$g_data[datak][6]}">首页推广</a><br>
      <a href="index.php?act=Bid&code=idx&GOODS_ID={$g_data[datak][6]}">竟价推广</a>&nbsp;| 
      <a href="index.php?act=Seller&code=21&GOODS_ID={$g_data[datak][6]}">{if $g_data[datak][5]}<font color="#FF0000">恢复交易</font>{else}标记已卖{/if}</a> {if $code eq "actgoods"}| <a href="index.php?act=Seller&code=doactive&GOODS_ID={$g_data[datak][6]}">激活</a>{/if} | <a href="index.php?act=attpic&GOODS_ID={$g_data[datak][6]}">副图管理</a></div></td>
    </tr>
  {/section}
                  </table>                    </td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
  {elseif $code eq '17'}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
               
                <tr>
                  <td  valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <tr>
                      <td width="112">留言人 </td>
                      <td width="539">留言内容</td>
                      <td width="197">留言日期</td>
                      <td width="240" align="center">管理操作</td>
                    </tr>
  {section name=datak loop=$msg}
  <tr class='f_one'>
    <td>{$msg[datak][0]}</td>
    <td>{$msg[datak][1]}</td>
    <td>{$msg[datak][2]}</td>
    <td><div align="center"><a href="index.php?act=Seller&code=18&MESSAGE_ID={$msg[datak][3]}">回复</a>{if not $msg[datak][4]}(<font color="#FF0000">还未回复</FONT>){/if} | <a href="index.php?act=Seller&code=19&MESSAGE_ID={$msg[datak][3]}" onclick="return confirmDel('是否删除留言?')">删除</a></div></td>
    </tr>
  {/section}
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>  
  {elseif $code eq '18'}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
    <tr>
      <td width="50%" valign=top>
        <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
          <tr>
            <td>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                <tr>
                  <td valign="top"><table width="100%" border="0" align="center" cellspacing=1 cellpadding=3 bgcolor=#E7E3E7>
                    <form action="" method="post">
					<tr class='f_one'>
                      <td width="128">留言内容：</td>
                      <td width="412">{$m.message_content}</td>
                    </tr>
                    <tr class='f_one'>
                      <td><p>回复内容：</p></td>
                      <td width="412"><textarea name="message_reply_content" cols="80" rows="10" class="form" id="textarea6">{$m.message_reply_content}</textarea></td>
                    </tr>
                    <tr class="f_one">
                      <td colspan="2" align="center"><input name="submit" type="submit" class="form" id="submit" value="  回 复  ">                        <input name="GOODS_ID" type="hidden" id="GOODS_ID" value="{$m.message_owner_goods_id}">
                          <input name="MESSAGE_ID" type="hidden" id="MESSAGE_ID" value="{$m.message_id}">
                          <input name="code" type="hidden" id="code5" value="20"></td>
                      </tr></form>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>  
  {elseif $code eq "sharelink"} 
  {else}
  <table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="50%" valign=top>
      <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
        <tr>
          <td>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
              <tr class="head">
                <td height="51"><img src="{#t_images#}hint.gif" width="32" height="32">欢迎登陆<b><A href="">{$html_title}</A></b>，请在左边选择您的操作</td>
                </tr>
              <tr>
                <td height="113" valign="top"><br>
                  您上次登陆时间是：{$seller.seller_last_time|date_format:"%Y-%m-%d"}<br><br>{$prop}<br><br>
                  {if not $notice}
                  您目前开了<font color="#FF0000">{$snum}</font>个商铺，共登陆<font color="#FF0000">{$gnum}</font>件商品，点击[<a href="index.php?act=Seller&code=16"><font color="#FF0000">这里</font></a>]管理商品，点击[<a href="index.php?act=Seller2&code=addg"><font color="#FF0000">这里</font></a>]快速上架商品。<br>
                  <br>
                  您目前有<font color="#FF0000">{$mnum}</font>条新的留言未回复，点击[<a href="index.php?act=Seller&code=16"><font color="#FF0000">这里</font></a>]回复消息。<br>
                  <br>
				  快速查看消费价目请点[<a href="index.php?act=User&code=price"><font color="#FF0000">这里</font></a>]。<br><br>购买更多的图片位请点[<a href="index.php?act=User&code=buypic"><font color="#FF0000">这里</font></a>]。<br>				  <br>
                  同时，我们还为您准备了个性域名为“<a href="http://{$seller.seller_logaccount}.{$domain}/" title="点击进入商家的个人主页(此个人主页列出商家所有店铺信息！)" target='_blank'><font color="#FF0000">http://{$seller.seller_logaccount}.{$domain}/</font></a>”便于推广您的商业{else}
                  {$notice}{/if}</td>
                </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>{/if} <!-- right start -->
</td><!-- right end -->
</tr>
</table><table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
</td></tr></table>
{include file="footer.tpl"}